{include file="header.html"}
<div> 
{include file='ymdian/nav.html'}
<form method='post' action='{$appadmin}?m=ymdian&a=save'>
<input type='hidden' name='id' style='display:none;' value='{$data.id}' >
 <table class='table table-bordered' width='100%'>
  <tr><td width="100">名称：</td><td><input type='text' name='title' id='title' value='{$data.title}' ></td></tr>
  <tr><td>楼栋：</td><td>
  					<select name="sc_id">
                    	<option value="0">请选择</option>
                        {get data=tc model=site_city fun=children(0)}
                        {foreach item=c from=$tc}
                        	<option value="{$c.sc_id}" {if $data.sc_id eq $c.sc_id} selected{/if}>{$c.title}</option>
                            {if $c.child}
                            {foreach item=cc from=$c.child}
                        	<option value="{$cc.sc_id}"  {if $data.sc_id eq $cc.sc_id} selected{/if}>|--{$cc.title}</option>
                            {/foreach}
                            {/if}
                        {/foreach}
                    </select>
  
  </td></tr>
   <tr><td>起送价：</td><td><input type='text' name="qsjia" value='{$data.qsjia}' ></td></tr>
   <tr><td>送货时间：</td><td><input type='text' name="shsj" value='{$data.shsj}' >(分钟)</td></tr>
  <tr><td>营业开始：</td><td><input type='text' name='yystart' id='yystart' value='{if $data.yystart}{$data.yystart}{else}18:00{/if}' onClick="WdatePicker({dateFmt:'HH:mm'})" ></td></tr>
  <tr><td>营业结束：</td><td><input type='text' name='yyend' id='yyend' value='{if $data.yyend}{$data.yyend}{else}23:59{/if}' onClick="WdatePicker({dateFmt:'HH:mm'})"></td></tr>
  <tr><td>电话：</td><td><input type='text' name='telephone' id='telephone' value='{$data.telephone}' ></td></tr>
  <tr><td>昵称：</td><td><input type='text' name='nickname' id='nickname' value='{$data.nickname}' ></td></tr>
  <tr><td>地址：</td><td><input type="text" name="address" value="{$data.address}"></td></tr>
  <tr>
  	<td>公告:</td>
    <td><input type="text" name="gonggao" value="{$data.gonggao}" class="w98"></td>
  </tr>
  <tr>
  	<td>公告:</td>
    <td>
    	<input type="radio" name="ggopen" value="0" {if !$data.ggopen} checked{/if}>关闭
    	<input type="radio" name="ggopen" value="1" {if $data.ggopen} checked{/if}>开启
    </td>
  </tr>
  
  <tr><td>状态：</td>
  <td>
  
  <input type='radio' name='status'  value='2' {if $data.status eq 2} checked{/if} > 开业
  <input type='radio' name='status'  value='4' {if $data.status neq 2} checked{/if} > 关闭
  </td></tr>
  <tr><td>账户金额：</td><td>{$data.money}</td></tr>
  
   {if $data}<tr><td>添加时间：</td><td>{$data.dateline|date:Y-m-d H:m}</td></tr>{/if}
<tr><td></td><td><input type='submit' value='保存' class='btn btn-success'></td></tr> </table>
</form>
</div>
<script language="javascript" src="/plugin/My97DatePicker/WdatePicker.js"></script> 
{include file="footer.html"}